package com.websocket.event;

import java.security.Principal;

public class WebSocketDisconnectEvent extends AbstractSubProtocolEvent {

    private final int code;

    public WebSocketDisconnectEvent(Object source, Principal user, int code) {
        super(source, user);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}